package com.cs.manaer.service;

import com.cs.manaer.controller.req.CsmgUserReqMsg;
import com.cs.manaer.controller.res.MGLoginResMsg;
import com.cs.manaer.po.CsmgUser;
import com.lin.common.error.CustomRuntimeException;

import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;

public interface LoginService {
    MGLoginResMsg login(String customerNo, String password) throws Exception;

    Integer logout() throws CustomRuntimeException;

    Integer verifyUser(String accNo);

    CsmgUser verifyEmail(String email);

    Integer register(CsmgUserReqMsg reqMsg) throws InvalidKeySpecException, NoSuchAlgorithmException, CustomRuntimeException;

    Boolean forgetPassword(String email) throws CustomRuntimeException;

    Integer modifypass(String email,String pass,String token) throws CustomRuntimeException;
}
